package com.imu.purse.modules.sms.entity;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import com.imu.core.base.BaseEntity;
import com.imu.common.validator.group.UpdateGroup;


/**
 * 短信记录
 * 
 * @author sunhongwei
 * @email sunhongwei@jshijian.com
 * @date 2018-03-21 14:09:34
 * Copyright (c) 2017 武汉极时间科技有限公司 版权所有 
 * Jshijian aloha CO.,LTD. All Rights Reserved. 
 */
@Data
@Table(name = "imu_sms_log")
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class SmsLogEntity extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	//主键ID
	@Id
	@Column(name="id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@NotNull(message="主键不存在无法更新", groups = {UpdateGroup.class})
	private Long id;
	
	//手机号
	@Column(name="phone")
	private String phone;
	
	//验证码
	@Column(name="code")
	private String code;
	
	//状态1成功-1失败
	@Column(name="state")
	private Integer state;
	
	//类型1成功-1失败
	@Column(name="type")
	private String type;
	
	//新增时间
	@Column(name="time_create")
	private Date timeCreate;
	
	//内容
	@Column(name="content")
	private String content;
	
	//描述
	@Column(name="desc")
	private String desc;
	
}
